OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c[3];
h q[0];
h q[1];
h q[2];
cu1(pi/2) q[2],q[1];
rz(pi/3) q[1];
cu1(pi/2) q[0], q[1];
rz(pi/3) q[2];
rz(-pi/3) q[0];
measure q[0] -> c[0];
measure q[1] -> c[1];
measure q[2] -> c[2];